#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int main()
{
	int n;
	scanf("%d", &n);
	int sum = 1;
	for (int i = 0; i < n; i++)
	{
		sum = sum * 2;
	}
	printf("2^%d = %d", n, sum);
	system("PAUSE");
	return 0;
}